{template 'common/header'}
<style type="text/css">
.mui-card.mui-one {box-shadow:none;}
.mui-card-footer a{width:50%;text-align:center; position:relative;color:#828282!important}
.mui-card-footer a:after{content: ""; position:absolute;right:0;left:auto;top:50%;width:1px;background:#E0E0E0;height:100%;-webkit-transform: translateY(-50%) scaleX(0.5); transform: translateY(-50%) scaleX(0.5);}
.mui-card-footer a:last-child:after{width:0px;}
</style>
<script type="text/javascript" charset="utf-8">
    wx.ready(function(){  //微信读取
        var srcList = [];
        $.each($('.mui-content img'),function(i,item){  //$('.info_detail .container img') 容器中的图片
            if(item.src) {
                srcList.push(item.src);
                $(item).click(function(e){
                    // 通过这个API就能直接调起微信客户端的图片播放组件了
                    wx.previewImage({
                        current: this.src,
                        urls: srcList
                    });
                });
            }
        });
    });
</script>
<div class="mui-content">
    <div class="mui-card mui-one">
        <div class="mui-card-content">
            <div class="mui-card-content-inner">
                <p style="font-size:14px">所选票种：<span class="mui-text-gray">{if !empty($records['optionname'])}{$records['optionname']}{else}暂无{/if}</span></p>
                <p style="font-size:14px">购票数量：<span class="mui-text-gray">{$records['teamnum']} 张</span></p>
                <p style="font-size:14px">票价总额：<span class="mui-text-gray mui-rmb">{if $records['aprice']}{php echo $records['aprice'] * $records['teamnum']}{else}0.00{/if}</span></p>
                <p style="font-size:14px">实付金额：<span class="mui-text-yellow mui-rmb">{if $records['payprice']}{$records['payprice']}{else}0.00{/if}</span></p>
                <p style="font-size:14px;margin-bottom:0;">报名状态：<span class="mui-text-gray">
                {if $records['status']==0}
                    <font class="mui-text-rmb">待支付{if $records['paytype']=='delivery'}（线下支付）{/if}</font>
                {elseif $records['status']==1 || $records['status']==2}
                    待参与
                {elseif $records['status']==3}
                    已参与
                {elseif $records['status']==5}
                    已取消
                {elseif $records['status']==7}
                    已退款
                {/if}
                </span></p>
            </div>
        </div>
    </div>
    
    <div class="mui-card mui-one mui-card-line">
        <div class="mui-card-content">
            <div class="mui-card-content-inner">
            	<p style="font-size:14px;margin-bottom:0;">姓名：<span class="mui-text-gray">{$records['realname']}</span></p>
                <p style="font-size:14px;margin-bottom:0;">手机：<span class="mui-text-gray">{$records['mobile']}</span></p>
            	{loop $forms[0] $form}
                {if $form['fieldstype']!=''}
                	<p style="font-size:14px;margin-bottom:0;">{$form['title']}：<span class="mui-text-gray">
                	{if $form['fieldstype']=='gender'}
                    	{php echo $formdata_common['gender']==0 ? '保密' :( $formdata_common['gender']==1?'男':'女')}
                    {elseif $form['fieldstype']=='age'}
                        {$formdata_common['age']} 岁
                    {elseif $form['fieldstype']=='birthyear'}
                         {php echo $formdata_common['birthyear'].'年'.$formdata_common['birthmonth'].'月'.$formdata_common['birthday'].'日'}
                    {elseif $form['fieldstype']=='resideprovince'}
                        {$formdata_common['resideprovince']}{$formdata_common['residecity']}{$formdata_common['residedist']}
                    {else}
                        {$formdata_common[$form['fieldstype']]}
                    {/if}
                    </span></p>
                {else}
                    {php $formdata = model_records::getSingleFormData($id, $form['id']);}
                    <p style="font-size:14px;margin-bottom:0;">{$form['title']}：
                    {if $form['displaytype']==5 && $formdata['data']!=''}
                        <img src="{php echo tomedia($formdata['data']);}" height="100" style="display:-webkit-box">
                    {elseif $form['displaytype']==6 && $formdata['data']!=''}
                    	<br>
                        {php $pics = explode(',', $formdata['data']);}
                        {loop $pics $v}
                        <img src="{php echo tomedia($v);}" height="30%" width="100" style="margin:0 5px 5px 0;display:inline-block">
                        {/loop}
                    {elseif $form['displaytype']==7}
                    	<span class="mui-text-gray">{php echo str_replace(',', '-', $formdata['data'])}</span>
                    {else}
                    	<span class="mui-text-gray">{php echo str_replace(',', ' ', $formdata['data'])}</span>
                    {/if}</p>
                {/if}
                {/loop}
                
            </div>
        </div>
        <div class="mui-card-footer">
        	<a href="tel:{$records['mobile']}">打电话</a>
        	<a href="sms:{$records['mobile']}">发短信</a>
        </div>
    </div>
    
    <div class="mui-card mui-one">
        <div class="mui-card-content">
            <div class="mui-card-content-inner">
            	<p style="font-size:14px">订单编号：<span class="mui-text-gray">{$records['orderno']}</span></p>
                <p style="font-size:14px">交易编号：<span class="mui-text-gray ">{$records['transid']}</span></p>
                <p style="font-size:14px;margin-bottom:0">创建时间：<span class="mui-text-gray">{php echo date('Y-m-d H:i', strtotime($records['jointime']))}</span></p>
            </div>
        </div>
    </div>
</div>
</body>
</html>